package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 公告表
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "NoticePageDTO", description = "公告表")
public class NoticePageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告标题
     */
    @ApiModelProperty(value = "公告标题")
    @NotEmpty(message = "公告标题不能为空")
    @Length(max = 500, message = "公告标题长度不能超过500")
    private String title;
    @ApiModelProperty(value = "")
    @Length(max = 65535, message = "长度不能超过65,535")
    private String content;
    /**
     * 发布状态：0-未发布 1-已发布 2-删除
     */
    @ApiModelProperty(value = "发布状态：0-未发布 1-已发布 2-删除")
    private Integer status;
    @ApiModelProperty(value = "")
    private Long orgaId;
    /**
     * 0未读，1已读
     */
    @ApiModelProperty(value = "0未读，1已读")
    @NotNull(message = "0未读，1已读不能为空")
    private Integer isRead;
    @ApiModelProperty(value = "")
    private Integer noticeType;

}
